//
//  HMHomeGoldSentenceCell.m
//  HowToDo
//
//  Created by 胡坤 on 2017/1/4.
//  Copyright © 2017年 KY. All rights reserved.
//

#import "HMHomeGoldSentenceCell.h"

@interface HMHomeGoldSentenceCell ()
@property (weak, nonatomic) IBOutlet UILabel *sourceContentLable;
@property (weak, nonatomic) IBOutlet UILabel *sourceFromLable;
@property (weak, nonatomic) IBOutlet UIButton *likeBtn;

@end

@implementation HMHomeGoldSentenceCell

-(void)awakeFromNib
{
    [super awakeFromNib];

}
//分享按钮
- (IBAction)shareBtnClick:(UIButton *)sender {
}
//点zan按钮
- (IBAction)likeBtnClick:(UIButton *)sender {
}

-(void)setSentenceInfo:(NSDictionary *)sentenceInfo
{
    _sentenceInfo = sentenceInfo;
    self.sourceFromLable.text = [NSString stringWithFormat:@"源自%@",sentenceInfo[@"resource_name"]];
    self.sourceContentLable.text = sentenceInfo[@"ebook_sentence"];
    [self.likeBtn setTitle:sentenceInfo[@"like_count"] forState:UIControlStateNormal];
}

@end
